package com.bh.vehicle.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Dict;
import com.bh.common.annotation.Excel;
import com.bh.common.core.domain.BhtmsBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 司机管理对象 jc_driver
 *
 * @author slx
 * @date 2023-04-24
 */
@EqualsAndHashCode(callSuper = true)
@TableName("jc_driver")
@Data
public class JcDriver extends BhtmsBaseEntity {

    

    /** 基础工资 */
    @ApiModelProperty("基础工资")
    @Excel(name = "基础工资")
    private BigDecimal baseWages;

    /** 性别 */
    @ApiModelProperty("性别")
    @Excel(name = "性别")
    private String sex;

    /** 年龄 */
    @ApiModelProperty("年龄")
    @Excel(name = "年龄")
    private Integer age;

    /** 生日 */
    @ApiModelProperty("生日")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 身份证 */
    @ApiModelProperty("身份证")
    @Excel(name = "身份证")
    private String card;

    /** 领取驾照日期 */
    @ApiModelProperty("领取驾照日期")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "领取驾照日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dri;

    /** 电话1 */
    @ApiModelProperty("电话1")
    @Excel(name = "电话1")
    private String iphone1;

    /** 电话2 */
    @ApiModelProperty("电话2")
    @Excel(name = "电话2")
    private String iphone2;

    /** 电话3 */
    @ApiModelProperty("电话3")
    @Excel(name = "电话3")
    private String iphone3;



    /** 类型 */
    @ApiModelProperty("类型")
    @Excel(name = "类型")
    private Integer type;

    /** 组织机构 */
    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    @ApiModelProperty("组织机构")
    @Excel(name = "组织机构")
    private Long jcOrganizationId;


    @Excel(name = "组织机构")
    @TableField(exist = false)
    private String jcOrganizationIdDtLabel;

    /** 对应用户ID */
    @ApiModelProperty("对应用户ID")
    @Excel(name = "对应用户ID")
    private String userId;

    @TableField(exist = false)
    private List<JcDriverupload> certificates;
}
